package com.jy.entity;

/**
 * 评论表
 */
public class Comment {
    private int cid;
    private int uid;          //评论用户id
    private String content;   //评论内容
    private String time;      //评论时间

    public Comment() {
    }

    public Comment(int uid, String content, String time) {
        this.uid = uid;
        this.content = content;
        this.time = time;
    }

    public Comment(int cid, int uid, String content, String time) {
        this.cid = cid;
        this.uid = uid;
        this.content = content;
        this.time = time;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "\nComment{" +
                "cid=" + cid +
                ", uid=" + uid +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
